package cn.jdy.plugins.entity;

import cn.jdy.common.bo.BaseEntry;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 品牌评论信息类
 *
 * @author GXP
 */
@Entity
public class BrandDiscuss extends BaseEntry   implements Serializable {

	private static final long serialVersionUID = 6489095809929185729L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
	private String id;// 主键
	@Column(length = 1000)
	private String disscuss_content;// 评论内容
	private String userip;// 用户ip
	private String username;// 用户名称 （暂时设为空，全部为匿名评论）
	private String discuss_type; // 评论类型 （暂时没用）
	private String is_anonymous; // 是否匿名 （暂时全部设置为匿名）  1 匿名 其他显示名称
	private String parentid; // 父id 回复评论的id（此字段暂时搁置）
	private String brandid; // 品牌id （暂时搁置）
	private Integer companyid; // 企业id
	@Column(columnDefinition = "datetime")
	private String disscusstime; // 评论时间
	private String status;
	
	//@Transient
	private String companyName;
	//@Transient
	private String brandName;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	// getter and setter
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDisscuss_content() {
		return disscuss_content;
	}

	public void setDisscuss_content(String disscuss_content) {
		this.disscuss_content = disscuss_content;
	}

	public String getUserip() {
		return userip;
	}

	public void setUserip(String userip) {
		this.userip = userip;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public String getBrandid() {
		return brandid;
	}

	public void setBrandid(String brandid) {
		this.brandid = brandid;
	}

	public Integer getCompanyid() {
		return companyid;
	}

	public void setCompanyid(Integer companyid) {
		this.companyid = companyid;
	}

	public String getDiscuss_type() {
		return discuss_type;
	}

	public void setDiscuss_type(String discuss_type) {
		this.discuss_type = discuss_type;
	}

	public String getIs_anonymous() {
		return is_anonymous;
	}

	public void setIs_anonymous(String is_anonymous) {
		this.is_anonymous = is_anonymous;
	}

	public String getDisscusstime() {
		return disscusstime;
	}

	public void setDisscusstime(String disscusstime) {
		this.disscusstime = disscusstime;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

}
